## Process this file with automake to produce Makefile.in

## Created by Anjuta
SUBDIRS = libgmlib

AM_CPPFLAGS = \
	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\"

AM_CFLAGS =\
	 -Wall\
	 -g \
	 $(FOSFOR_CFLAGS)

bin_PROGRAMS = fosfor

fosfor.h: fosfor.ui
	./xmltoh.pl fosfor.ui > fosfor.h

fosfor_SOURCES = \
	callbacks.c \
	callbacks.h \
	dbus-interface.c \
	dbus-interface.h \
	main.c     \
	declarations.h \
	fosfor.h \
	support.c \
	support.h \
	fosfor_button.c \
	fosfor_button.h \
	fosfor_tracker.h \
	fosfor_tracker.c \
	fosfor_volume.c \
	fosfor_volume.h \
	fosfor_playlist.c \
	fosfor_playlist.h

fosfor_LDFLAGS = \
	-Wl,--export-dynamic

fosfor_LDADD = $(FOSFOR_LIBS) \
    libgmlib/libgmlib.a

EXTRA_DIST = xmltoh.pl fosfor.ui

# Remove ui directory on uninstall
uninstall-local:
	-rm -r $(uidir)
	-rm -r $(datadir)/fosfor
